package com.neuedu.wemall.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.apache.ibatis.type.Alias;

import java.io.Serializable;
import java.util.Date;
/**
* Author lu
* Date  2025-09-08 15:17:25
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@Alias("favorite")
@TableName(value = "favorite")
public class Favorite implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
    *收藏ID
    */
    @TableField(value = "id")
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
    * 会员ID
    */
    @TableField(value = "user_id")
    private Integer userId;
    /**
    * 商品ID
    */
    @TableField(value = "prod_id")
    private Integer prodId;
    /**
    * 收藏时间
    */
    @TableField(value = "create_time")
    private Date createTime;
    /**
     * 商品信息
     */
    @TableField(exist = false)
    private Product product;
}